package com.hntest.entity;
//用户登录表

import org.apache.ibatis.type.Alias;

import java.io.Serializable;

public class LoginInfo implements Serializable {
    public final static int STATE_NORMAL=0;//普通用户状态
    public final static int STATE_LOCK=1;//用户锁定状态
    public final static int STATE_LOGOFF=-1;//用户注销状态
    private static final long serialVersionUID = -8868462873803179655L;

    private Integer liid;
    private String userName;
    private String password;
    private Integer userState=STATE_NORMAL; //用户状态
    private Integer userType;   //用户类型 (0=用户，1=管理员)

    public LoginInfo(){}

    public LoginInfo(Integer liid, String userName, String password, Integer userState, Integer userType) {
        this.liid = liid;
        this.userName = userName;
        this.password = password;
        this.userState = userState;
        this.userType = userType;
    }

    public Integer getLiid() {
        return liid;
    }

    public void setLiid(Integer liid) {
        this.liid = liid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getUserState() {
        return userState;
    }

    public void setUserState(Integer userState) {
        this.userState = userState;
    }

    public Integer getUserType() {
        return userType;
    }

    @Override
    public String toString() {
        return "LoginInfo{" +
                "liid=" + liid +
                ", 用户名='" + userName + '\'' +
                ", 密码='" + password + '\'' +
                ", 用户状态=" + userState +
                ", 用户类型=" + userType +
                '}';
    }

    public void setUserType(Integer userType) {
        this.userType = userType;

    }
}
